import Vue from 'vue';
import Router from 'vue-router';

import SearchList from "@/views/SearchList";
import Index from "@/views/Index";

Vue.use(Router);

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "Index",
      component: Index
    }, {
      path: '/classified',
      name: 'classified',
      component: () => import('./views/Classified.vue'),
    }, {
      path: '/searchList',
      name: 'searchList',
      component: SearchList,
    }, {
      path: '/classification',
      name: 'classification',
      component: () => import('./views/classification/Classification.vue'),
    },
    {
      path: '/classifiedArticles',
      name: 'classifiedArticles',
      component: () => import('./views/classification/classified_articles/ClassifiedArticles.vue'),
    }, {
      path: '/theArticleDetails',
      name: 'theArticleDetails',
      component: () => import('./views/TheArticleDetails.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('./views/About.vue'),
    },
  ],
});
